export enum MYLOG_TYPE {
    LOG_BULLET = 1,
    LOG_FISH = 2,
    LOG_OTHER = 3
}

class LogFlag{
    type:number;
    flag:boolean;
}

export default class MyLog {


    //默认打开日志输出 
    static flag: boolean = true

    static type_flag = {
        1:'LOG_BULLET : ',
        2:'LOG_FISH : ',
        3:'LOG_OTHER : ',
        
    }

    static log(type: number, ...data: any[]) {
        if(MyLog.flag){
            console.log(MyLog.type_flag[type],new Error().stack,data)
        }
    }

}
